﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Utility1;

namespace Thv.trangchu.page
{
    public partial class Sanpham : System.Web.UI.Page
    {
        protected string templatePath;
        protected void Page_Load(object sender, EventArgs e)
        {
            templatePath = WebUtils.GetBaseUrl();
            try
            {
                string id = Request.QueryString["Id"];
                DataClasses1DataContext dx = new DataClasses1DataContext();
                var list = from k in dx.Product_tbs
                           where k.ID == int.Parse(id)
                           select k;
                DataList1.DataSource = list;
                DataList1.DataBind();
            }
            catch (Exception) { }
        }
    }
}